package com.ywg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 支付订单
 * @TableName payment_order
 */
@TableName(value ="payment_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaymentOrder {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 业务类型，BizTypeEnum
     */
    @TableField(value = "biz_type")
    private Integer bizType;

    /**
     * 业务ID
     */
    @TableField(value = "biz_id")
    private Long bizId;

    /**
     * 客户类型，ClientTypeEnum
     */
    @TableField(value = "client_type")
    private Integer clientType;

    /**
     * 客户名字
     */
    @TableField(value = "client_name")
    private String clientName;

    /**
     * 付款方式，PaymentModeEnum
     */
    @TableField(value = "mode")
    private Integer mode;

    /**
     * 币种
     */
    @TableField(value = "currency")
    private String currency;

    /**
     * 金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 付款凭证
     */
    @TableField(value = "voucher")
    private String voucher;

    /**
     * 收款主体，RecipientEnum
     */
    @TableField(value = "recipient")
    private Integer recipient;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}